package com.interview.select;

public class DemoNine extends DemoNineFather{
    protected final void getInfo(){
        System.out.println("method of DemoNine class");
    }
    public  static  void main(String[] args){
        DemoNineFather base = new DemoNineFather();
        base.getInfo();
    }
}
//TODO 父类 方法 final 不能被子类继承实现 并重写
 class DemoNineFather {
//    protected final void getInfo(){
//        System.out.println("method of Base class");
//    }
    protected  void getInfo(){
    System.out.println("method of Base class");
}
}
